Component({
  properties: {
    item: {
      type: Object,
      value: {}
    }
  },
  methods: {
    indexMerchantClick(event) {
      console.log(event)
      var tapId = event.currentTarget.id;
      var type = event.currentTarget.dataset.type;
      // 跳转到商家详情，0餐饮 非0其他商家
      if (type == 0) {
        let data = {};
        data.id = tapId;
        let rtnData = JSON.stringify(data);
        wx.navigateTo({
          url: '../../pages/detail/index?data=' + rtnData
        })
      } else {
        wx.navigateTo({
          url: '/pages/merchant/index?merchantId=' + tapId
        })
      }
    }
  },
});





